package cn.com.ylpw.web.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.ylpw.entity.PageResult;
import cn.com.ylpw.web.product.service.IProductService;
import cn.com.ylpw.web.util.AbstractService;

/**
 * 商品Service接口实现
 * 
 * @author July july_sky@foxmail.com
 * @date 2015年5月25日下午5:35:45
 * @Copyright ©2003-2015 北京春秋永乐文化传播有限公司. All Rights Reserved.
 * @version 1.0
 */
@Service("productService")
public class ProductServiceImpl extends AbstractService implements IProductService{
	private final static String NAME_SPACE = "cn.com.ylpw.web.product.Product";
	@Override
	public Map<String, Object> getProduct(Map<String, Object> params) throws Exception {
		return super.superDao.getMyBatisFactory().getObject(NAME_SPACE, "getProduct", params);
	}
	@Override
	public List<Map<String, Object>> findProductList(Map<String, Object> params) throws Exception {
		return super.superDao.getMyBatisFactory().findObjectList(NAME_SPACE, "findProductList", params);
	}
	@Override
	public PageResult getProductPageResult(Map<String, Object> params)
			throws Exception {
		return super.superDao.getMyBatisFactory().findObjectPage(NAME_SPACE, "findProductList", "getProductCount", params);
	}
	@Override
	public List<Map<String, Object>> getProductByVenuesHotList(
			Map<String, Object> params) throws Exception {
		return super.superDao.getMyBatisFactory().findObjectList(NAME_SPACE, "getProductByVenuesHotList", params);
	}
	@Override
	public Map<String, Object> findByProductPlayId(Map<String, Object> params) throws Exception {
		return super.superDao.getMyBatisFactory().getObject(NAME_SPACE, "findByProductPlayId", params);
	}
	@Override
	public Map<String, Object> findRobseatProductById(Map<String, Object> params) throws Exception {
		return super.superDao.getMyBatisFactory().getObject(NAME_SPACE, "findRobseatProductById", params);
	}
	@Override
	public Map<String, Object> getProductById(Map<String, Object> params)throws Exception {
		return super.superDao.getMyBatisFactory().getObject(NAME_SPACE, "getProductById", params);
	}
	@Override
	public List<Map<String,Object>> getProductByIds(Map<String, Object> params)throws Exception {
		return super.superDao.getMyBatisFactory().findObjectList(NAME_SPACE, "getProductByIds", params);
	}
	
}
